package com.example.my_club2.welcome

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.example.my_club2.R
import com.example.my_club2.databinding.ActivityAdBinding
import com.example.my_club2.databinding.ActivityCommonWebBinding
import com.therouter.TheRouter
import com.therouter.router.Route
import dagger.hilt.android.AndroidEntryPoint
import retrofit2.http.Part
import retrofit2.http.Path
import androidx.viewpager2.widget.ViewPager2

@Route(path = "app/AdActivity")
class AdActivity : AppCompatActivity() {
    private lateinit var binding : ActivityAdBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        TheRouter.inject(this)
        binding = ActivityAdBinding.inflate(layoutInflater)
        setContentView(binding.root)
        // 设置 ViewPager2
        binding.viewPager.adapter = AdSwiperAdapter()
    }
}